package fxTrader.presentation;
public class TrendReporter {
	
	private boolean finderDecision; // Decision for investment
	
	// Default constructor
	public TrendReporter(){

	} 
	
	// Constructor 
	public TrendReporter(boolean finderDecision){
		this.finderDecision = finderDecision;
	}
		
//	// *** get the finderDecision ***
//	public boolean isFinderDecision() {
//		return finderDecision;
//	}
//	// *** End method isFinderDecision ***
//
//	// *** Set the finderDecision ***
//	public void setFinderDecision(boolean finderDecision) {
//		this.finderDecision = finderDecision;
//	}
//	// *** End method setFinderDecision ***


	//------------------------------------------------------------------------------------------------------------------ Thomas update.
	// *** Display the consultation by decision for short trend***
	public void displayConsultation_shortTrend(boolean isBuy,double[] resultList){
		System.out.println("\n\n******************** FX Trader System ********************"+"\n");
		System.out.print("    SMA 10: " + resultList[1]);
		System.out.print("    SMA 20: " + resultList[2]);
		System.out.println("    SMA 50: " + resultList[3] + "\n");
		System.out.println("    5 Day High:  " + resultList[4] + "  , 1 Month High:  " + resultList[5]);
		System.out.println("    5 Day Low :  " + resultList[6] + "  , 1 Month Low :  " + resultList[7] + "\n");
		System.out.print("    Exchange Rate is: " + resultList[0] + "\n");
		
		if(isBuy)
		{
			System.out.println("    We suggested that you buy the currency.");
		}
		else
			System.out.println("    We suggested that you sell the currency.");
		System.out.println("\n**********************************************************"+"\n");
	}
	// *** End method displayConsultation ***
	
	// *** Display the consultation by decision for long trend***
	public void displayConsultation_longTrend(boolean isBuy,double[] resultList){
		System.out.println("\n\n******************** FX Trader System ********************"+"\n");
		System.out.print("    SMA 10: " + resultList[1]);
		System.out.print("    SMA 20: " + resultList[2]);
		System.out.println("    SMA 50: " + resultList[3] + "\n");
		System.out.println("    5 Day High:  " + resultList[4] + "  , 1 Month High:  " + resultList[5]);
		System.out.println("    5 Day Low :  " + resultList[6] + "  , 1 Month Low :  " + resultList[7] + "\n");
		System.out.print("    Exchange Rate is: " + resultList[0] + "\n");
		
		if(isBuy)
		{
			System.out.println("    We suggested that you buy the currency.");
		}
		else
			System.out.println("    We suggested that you sell the currency.");
		System.out.println("\n**********************************************************"+"\n");
	}
	// *** End method displayConsultation ***
}